Ext.define('Usws.view.baseVideoCat.BaseVideoCatEdit', {
    extend: 'Ext.window.Window',
    xtype: 'BaseVideoCat-Edit',
    title: '编辑视频类别信息',
    layout: 'fit',
    autoShow: true,
    modal: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '10px',
                border: 0,
                items: [
                     { xtype: 'hiddenfield', name:'baseVideoCat.uid', id: 'uid'}
					,{ xtype: 'textfield', name:'baseVideoCat.code', id: 'code', fieldLabel: '代码',allowBlank:false}
					,{ xtype: 'textfield', name:'baseVideoCat.name', id: 'name', fieldLabel: '名称',allowBlank:false}
					,{ 
						xtype: 'textareafield',
						name:'baseVideoCat.description',
						id: 'description',
						minWidth:400,
						fieldLabel: '类别说明',
						emptyText:'请输入50字以内的类别说明',
						allowBlank:false
					 }
                ]
            }
        ];

        this.buttons = [
            {
                text: '确定',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
    }
});